import { create } from 'zustand'
import { immer } from 'zustand/middleware/immer' // 引入中间件

type HoverState = {
  ishovered: boolean,
  setHover: (status: boolean) => void
}

export const useHoverStore = create<HoverState>()(immer((set) => ({
  ishovered: false,
  setHover: (status) => set((state) => { state.ishovered = status })
})))
